home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 62
/
Volume 62 - JOGO DISK .iso
/
Games
/
penguin_dinner.swf
/
scripts
/
__Packages
/
classes
/
ui
/
IntroScreen.as
< prev
next >
Wrap
Text File
|
2008-03-17
|
1KB
|
37 lines
class classes.ui.IntroScreen extends classes.ui.AbstractWidget
{
static var BUTTON_CLICKED = "button_clicked";
function IntroScreen()
{
super();
classes.core.SoundManager.getInstance().startMusicTrack("storm_loop");
this.doLater(this.init);
}
function init()
{
this.next_btn.addEventListener(classes.ui.TextButton.CLICK,this,"onButtonClick");
}
function onButtonClick(e)
{
var _loc0_ = null;
if((_loc0_ = e.target) === this.next_btn)
{
if(classes.core.SOManager.getInstance().__get__showHelpAtStart())
{
classes.core.SOManager.getInstance().__set__showHelpAtStart(false);
classes.ui.InstructionScreen.invokedFromMainMenu = false;
classes.core.Application.getInstance().gotoInstructionsScreen();
}
else
{
classes.core.Application.getInstance().gotoMapScreen();
}
}
}
function dispose()
{
this.next_btn.dispose();
super.dispose();
}
}